package cn.yj.common.lock;

import java.io.Serializable;

/**
 * @author 永健
 * @since 2022-01-21 15:28
 */
public interface IVariableLock<T> {

    void lock(T variable);

    void unlock(T variable);

    void sync(T val,Runnable runnable);
}
